<template>
    <el-container>
        <el-header class='el-header'> 
            
        </el-header>

        <el-main class="main">
            <el-button @click="vad()">Test</el-button>

        </el-main>
</el-container> 
</template>

<script>
import axios from 'axios'
import icon_url from '@/assets/icon-2.png'
export default {
    name:"upload",
    data() {
        return {
            name: "上传文件",
            checkStatus: "",
            activeTab: 'first',
            iconPath:icon_url,
        }
    },
    methods: {
        vad(){
            axios.post("http://localhost:8000/dialogue/speech_vad/", {
                headers: {
                    'Content-Type': 'multipart/form-data'
            },
            }).then(res => {
                console.log(res);
            });
        },
        goTo1(){
            this.$router.push({ path:'/upload' })
        },
        goTo2(){
            this.$router.push({ path:'/uploadDisease' })
        }
    },
}
</script>
<style scoped>
    .el-aside{
        background-color: #2b3a49;
    }
    
    .main{
        background-color: #f3f3f4;
        margin-top:80px;
    }
    .main-container{
        position:absolute;
        height:100%;
        width:100%;
    }
    .card-box{
        margin-top:100px;
    }
    .tab-title{
        color:#fff;
    }
    .box-card{
        width:300px;
        height:320px;
        margin:auto;
    }

</style>

